package com.zzyl.mapper;

import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);

    int insertBed(Bed bed);

    int deleteById(@Param("id") Integer id);

    Bed getByBedId(Long bedId);

    int updateById(Bed bed);
}

